<%@ include file="../common/top.jsp"%>
<div class="crumb">
  <div class="w">
    <div class="crumb-content">
      <a href="#" class="link">MyStore</a>
      <span>></span>
      <span class="link-text">Item Details</span>
    </div>
  </div>
</div>

<div class="w panel">
  <div id="BackLink">
    <a href="productForm?productId=${sessionScope.product.productId}" style="text-align: center">Return to ${sessionScope.product.name}</a>
  </div>

  <div id="Catalog" style="text-align: center;display: block">

    <table style="border: solid;border-radius: 5px;margin: 0 auto">
      <tr>
        <td>${sessionScope.product.description}</td>
      </tr>
      <tr>
        <td><b> ${sessionScope.item.itemId} </b></td>
      </tr>
      <tr>
        <td><b><font size="4"> ${sessionScope.item.attribute1}
          ${sessionScope.item.attribute2} ${sessionScope.item.attribute3}
          ${sessionScope.item.attribute4} ${sessionScope.item.attribute5}
          ${sessionScope.product.name} </font></b></td>
      </tr>
      <tr>
        <td>${sessionScope.product.name}</td>
      </tr>
      <tr>
        <td><c:if test="${sessionScope.item.quantity <= 0}">
          Back ordered.
        </c:if> <c:if test="${sessionScope.item.quantity > 0}">
          ${sessionScope.item.quantity} in stock.
        </c:if></td>
      </tr>
      <tr>
        <td><fmt:formatNumber value="${sessionScope.item.listPrice}"
                              pattern="$#,##0.00" />
        </td>
      </tr>

      <tr>
        <td>
  <%--        <stripes:link class="Button"--%>
  <%--                        beanclass="org.mybatis.jpetstore.web.actions.CartActionBean"--%>
  <%--                        event="addItemToCart">--%>
  <%--        <stripes:param name="workingItemId" value="${sessionScope.item.itemId}" />--%>
  <%--        --%>
  <%--      </stripes:link>--%>
          <a href="addItemToCart?workingItemId=${item.itemId}&record=<%="add item to cart:"%>" class="Button">Add to Cart</a>
        </td>
      </tr>
    </table>

  </div>
</div>
<%@ include file="../common/bottom.jsp"%>



